package com.shb.jutils.pojo;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * 邮件登录校验器
 * @author shb
 *
 */
public class MyAuthenticator extends Authenticator {
	String userName;
	String userPass;
	public  MyAuthenticator(){};
	public MyAuthenticator(String userName,String userPass){
		this.userName=userName;
		this.userPass=userPass;
	}
	protected PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication(userName,userPass);
	}
}
